package com.wu.project.admin.api;

import com.wu.project.admin.annotations.Authorization;
import com.wu.project.admin.annotations.Log;
import com.wu.project.admin.component.JsonResult;
import com.wu.project.admin.entity.LogQueryVO;
import com.wu.project.admin.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/log")
@RestController
public class LogApi {

    @Autowired
    LogService logService;

    @PostMapping("/list")
    @Log(name = "查询日志列表")
    @Authorization
    public JsonResult logList(@RequestBody LogQueryVO logQueryVO) {
        return logService.getLogList(logQueryVO);
    }


}
